﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Youz.Common.BLL;
using Youz.Common.Entity;

namespace Youz.CreditRepay.Manage
{
    
    public partial class LanguageType : System.Web.UI.UserControl
    {
        public string P_AllTypeList = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                P_AllTypeList = GetAllList();
            }
        }

        private string GetAllList()
        {
            StringBuilder sb = new StringBuilder();
            List<Lang_LanguageType> list = new Lang_LanguageTypeBLL().Gets();
            foreach (var item in list)
            {
                sb.AppendFormat("<option value='{0}'>{1}</option>", item.LanguageCode, item.LanguageName);
            }

            return sb.ToString();
        }
    }
}